package com.wanmait.zaisousuo.mapper;

import com.wanmait.zaisousuo.pojo.ArticleCollect;

import java.util.List;

public interface ArticleCollectMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ArticleCollect record);

    int insertSelective(ArticleCollect record);

    ArticleCollect selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ArticleCollect record);

    int updateByPrimaryKey(ArticleCollect record);

    //添加收藏信息
    void insertCollects(List<ArticleCollect> articleCollects);

    //删除收藏信息
    void deleteCollects(List<ArticleCollect> articleCollects);

    //删除相关点赞
    void deleteRelativeCollects(Integer articleId);
}